package com.dc.project.entity.form;

import com.own.exception.BusinessSimpleException;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * BaseCreateTaskForm
 *
 * @author chenxueli
 * @date 2025-03-21 10:59:57
 */
@Data
public class BaseCreateTaskForm implements Serializable {

    /**
     * 企业名称
     */
    private String companyName;

    /**
     * 领域名称
     */
    private String realmName;

    public void check() {
        if (StringUtils.isBlank(companyName)) {
            throw new BusinessSimpleException("企业名称不能为空");
        }
    }

}
